package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._02策略模式._4商品价格简单工厂模式;

/**
 * @ClassName CashRebate
 * @Description TODO
 * @Author zero
 * @DATE 2023/7/9 11:46 PM
 * @Version 1.0
 */
public class CashRebate extends CashSuper {
    private double v;

    public CashRebate(double v) {
        this.v = v;
    }

    @Override
    public double acceptCash(double price, int num) {
        return price * num * v;
    }
}
